package com.zky.group.grouppintuan.feign;

import com.zky.common.entity.GoodsEntity;
import com.zky.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("group-shop")
public interface ShopFeignService {


    //商品数据
    @RequestMapping("groupshop/goods/info/{goodsId}")
//    @RequiresPermissions("groupshop:goods:info")
    public R info(@PathVariable("goodsId") Long goodsId);


    //修改商品
    @RequestMapping("groupshop/goods/update")
//    @RequiresPermissions("groupshop:goods:update")
    public R update(@RequestBody GoodsEntity goods);





}
